Skip to content

Move to next token when using the tabulator#573

Merged
Earthcomputer merged 1 commit intoFabricMC:masterfrom
Geolykt:tabulator-navigation
Oct 18, 2025
Merged

Move to next token when using the tabulator#573
Earthcomputer merged 1 commit intoFabricMC:masterfrom
Geolykt:tabulator-navigation

Conversation

@Geolykt
Copy link
Contributor

@Geolykt Geolykt commented Oct 17, 2025

It's a bit finicky to use as it doesn't grab focus by default (i.e. tabbing whilst not editing should still mostly be old behaviour), and tabbing twice to skip a isn't a thing either. Although both issues are more or less connected to each other.

Resolving the loss of focus on tabbing issue probably requires a small refractor in IdentifierPanel#refreshReference to not throw out the old ConvertingTextField instance. However, that is conjecture on my side, the actual fix might be more involved or simplier - although I personally haven't managed to find a clear-cut approach beyond this lead after two hours of trying.

This PR also introduces a slight visual bug where when the user maps tokens in a short amount of time, so highlight painters will highlight the wrong sections of text. However, as the root source is not exactly related to this PR and resolving it would be a bit more involved I decided to not include such a change in this PR for now. I may try to resolve it if requested though (though for a small visual glitch that resolves itself after a second of waiting resolving it might be a bit overkill anyways)

Closes #113

@Geolykt Geolykt marked this pull request as ready for review October 17, 2025 22:13
Copy link
Contributor

@Earthcomputer Earthcomputer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm a bit concerned about the issues you're identifying, but they're relatively minor bugs that can be fixed later, for now the code looks fine. The highlighters highlighting the wrong section of text is something I've noticed before this PR, so even though it's making it more visible, I don't think this is the cause.

@Earthcomputer Earthcomputer merged commit 79751d9 into FabricMC:master Oct 18, 2025
2 checks passed
@Geolykt Geolykt deleted the tabulator-navigation branch October 19, 2025 16:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Allow cycling selection targets with Tab

2 participants